package com.rams.jhms.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class DerbyBaseDAO {
	protected Connection getConnection() {
		return DerbyConnectionHelper.getConnection();
	}
	
	protected void close(Connection conn) {
		DerbyConnectionHelper.close(conn);
	}
	
	protected void close(PreparedStatement stmt) {
		DerbyConnectionHelper.close(stmt);
	}
	
	protected void close(ResultSet rs) {
		DerbyConnectionHelper.close(rs);
	}

	protected void close(Connection conn, PreparedStatement st, ResultSet rs) {
		close(conn);
		close(st);
		close(rs);
	}
}
